import os
import subprocess

sh = os.path.join(os.path.abspath("."), "scripts", "web.sh")
out = subprocess.run(["bash", sh], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print(out.stdout.decode())